﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<t_205_verk_hopur_12.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Nýskráning
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LogoText" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MenuBar" runat="server">
    <% Html.RenderPartial("MenuBar"); %>
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Nýskráning</h2>
    <p>
        Lykilorð mega ekki vera styttri en <%= Html.Encode(ViewData["PasswordLength"]) %> stafir
    </p>
    <p>&nbsp;</p>

    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Villur voru í nýskráningu") %>
        <p>&nbsp;</p>
        <div>
            <div class="editor-label">
                <%= Html.LabelFor(m => m.UserName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.UserName) %>
                <%= Html.ValidationMessageFor(m => m.UserName) %>
            </div>
            <div class="clear"></div>
            
            <div class="editor-label">
                <%= Html.LabelFor(m => m.Email) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.Email) %>
                <%= Html.ValidationMessageFor(m => m.Email) %>
            </div>
            <div class="clear"></div>
            
            <div class="editor-label">
                <%= Html.LabelFor(m => m.Password) %>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(m => m.Password) %>
                <%= Html.ValidationMessageFor(m => m.Password) %>
            </div>
            <div class="clear"></div>
            
            <div class="editor-label">
                <%= Html.LabelFor(m => m.ConfirmPassword) %>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(m => m.ConfirmPassword) %>
                <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
            </div>
            <div class="clear"></div>
            
            <div class="editor-label">
                <%= Html.LabelFor(m => m.Age) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(m => m.Age) %>
                <%= Html.ValidationMessageFor(m => m.Age) %>
            </div>
            <div class="clear"></div>
            
            <div class="editor-label">
                <%= Html.LabelFor(m => m.Gender) %>
            </div>
            <div class="editor-field">
                <select name="Gender" id="Gender">
                    <option value="True">Karl</option>
                    <option value="False">Kona</option>
                </select>
                <%= Html.ValidationMessageFor(m => m.Gender) %>
            </div>
            <div class="clear"></div>
            
            <p>
                <input type="submit" value="Skrá" />
            </p>
        </div>
    <% } %>
</asp:Content>
